package com.zx.framework.core.exception;

/**
 * 框架中异常的顶级类
 * 
 * @author stylewolf 2013-10-10
 */
public class FrameworkException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 错误消息
	 */
	private String faultString;
	/**
	 * 异常代码
	 */
	private String code;
	/**
	 * 错误代码
	 */
	private String faultCode;

	public FrameworkException() {
		super();

	}

	public FrameworkException(String message, Throwable cause) {
		super(message, cause);

	}

	public FrameworkException(String message) {
		super(message);

	}

	public FrameworkException(Throwable cause) {
		super(cause);

	}

	public FrameworkException(String faultString, String code,
			String faultCode, String message) {
		super(message);
		this.faultString = faultString;
		this.code = code;
		this.faultCode = faultCode;
	}

	public String getFaultString() {
		return faultString;
	}

	public void setFaultString(String faultString) {
		this.faultString = faultString;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getFaultCode() {
		return faultCode;
	}

	public void setFaultCode(String faultCode) {
		this.faultCode = faultCode;
	}

}
